/* 全局样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    padding: 20px;
}

/* 简历容器 */
.resume-container {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
}

/* 头部样式 */
.resume-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 40px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.profile {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 300px;
}

.profile-pic {
    margin-right: 30px;
}

.avatar-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.profile-info h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.job-title {
    font-size: 1.2rem;
    margin-bottom: 5px;
    opacity: 0.9;
}

.student-id {
    font-size: 1.1rem;
    margin-bottom: 10px;
    opacity: 0.9;
    font-weight: 500;
}

.tagline {
    font-size: 1rem;
    opacity: 0.8;
    max-width: 500px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
    min-width: 300px;
    margin-top: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
}

.contact-item i {
    width: 20px;
    text-align: center;
    opacity: 0.9;
}

/* 主要内容区域 */
.resume-content {
    display: flex;
    flex-wrap: wrap;
}

.resume-left {
    flex: 1;
    min-width: 300px;
    padding: 30px;
    background: #f8f9fa;
    border-right: 1px solid #e9ecef;
}

.resume-right {
    flex: 2;
    min-width: 400px;
    padding: 30px;
}

/* 通用章节样式 */
.resume-section {
    margin-bottom: 40px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.5rem;
    color: #4a5568;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 3px solid #667eea;
}

.section-title i {
    color: #667eea;
}

/* 技能部分 */
.skills {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.skill-category h3 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #4a5568;
}

.skill-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.skill-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.skill-item span {
    font-size: 0.95rem;
    color: #4a5568;
}

.skill-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
}

.skill-progress {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 1s ease-in-out;
}

/* 语言能力 */
.language-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.language-item {
    padding: 15px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    margin-bottom: 15px;
}

.language-item span:first-child {
    font-weight: 600;
    font-size: 1.1rem;
    color: #4a5568;
    display: block;
    margin-bottom: 8px;
}

.language-level {
    margin-top: 8px;
    color: #718096;
    font-size: 0.9rem;
}

.language-skill {
    margin-top: 10px;
}

.language-skill span {
    font-weight: normal !important;
    font-size: 0.9rem !important;
    margin-bottom: 5px !important;
}

/* 兴趣爱好 */
.hobbies {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hobby-tag {
    padding: 8px 16px;
    background: #667eea;
    color: white;
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.hobby-tag:hover {
    background: #764ba2;
    transform: translateY(-2px);
}

/* 时间线样式 */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.timeline-item {
    position: relative;
    padding-left: 30px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 12px;
    height: 12px;
    background: #667eea;
    border-radius: 50%;
}

.timeline-item:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 12px;
    width: 2px;
    height: calc(100% + 18px);
    background: #e2e8f0;
}

.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.timeline-header h3 {
    font-size: 1.2rem;
    color: #2d3748;
}

.timeline-date {
    font-size: 0.9rem;
    color: #718096;
    background: #edf2f7;
    padding: 4px 12px;
    border-radius: 20px;
}

.timeline-company {
    font-size: 1rem;
    color: #4a5568;
    margin-bottom: 10px;
    font-weight: 500;
}

.timeline-content ul {
    padding-left: 20px;
    color: #4a5568;
}

.timeline-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* 项目经验 */
.project-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.project-item {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 10px;
    border-left: 4px solid #667eea;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.project-header h3 {
    font-size: 1.2rem;
    color: #2d3748;
}

.project-date {
    font-size: 0.9rem;
    color: #718096;
}

.project-description {
    margin-bottom: 15px;
    color: #4a5568;
    line-height: 1.6;
}

.project-content ul {
    padding-left: 20px;
    color: #4a5568;
    margin-bottom: 15px;
}

.project-content li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.project-tech {
    font-size: 0.9rem;
    color: #667eea;
    font-weight: 500;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .resume-content {
        flex-direction: column;
    }
    
    .resume-left {
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }
    
    .resume-header {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }
    
    .profile {
        flex-direction: column;
        min-width: auto;
    }
    
    .profile-pic {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .contact-info {
        min-width: auto;
    }
}

@media (max-width: 576px) {
    body {
        padding: 10px;
    }
    
    .resume-header,
    .resume-left,
    .resume-right {
        padding: 20px;
    }
    
    .profile-info h1 {
        font-size: 2rem;
    }
    
    .timeline-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .project-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}